package com.azy.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;

/**
 * products
 * @author 
 */
@ApiModel(value="商品实体类")
@Data
public class Products implements Serializable {
    @TableId
    @ApiModelProperty(value = "商品id")
    private String pid;
    @ApiModelProperty(value = "商品名")
    private String pname;
    @ApiModelProperty(value = "商品价格")
    private Integer price;
    @ApiModelProperty(value = "商品状态")
    private String flag;
    @ApiModelProperty(value = "商品类别id")
    private String categoryId;

    @TableField(exist = false)
    private  Category category;
    private static final long serialVersionUID = 1L;
}